package com.example.demo.entity;

import java.util.Date;
import javax.persistence.*;

@Table(name = "t_message")
public class Message extends BaseEntity{

    private Recontact recontact;

    public Recontact getRecontact() {
        return recontact;
    }

    public void setRecontact(Recontact recontact) {
        this.recontact = recontact;
    }

    /**
     * id
     */
    @Id
    @Column(name = "id")
    private String id;

    /**
     * 接受状态
     */
    @Column(name = "accepting_state")
    private String acceptingState;

    /**
     * 发送时间
     */
    @Column(name = "send_time")
    private Date sendTime;

    /**
     * 消息类型id
     */
    @Column(name = "message_type_id")
    private String messageTypeId;

    /**
     * 发送者id
     */
    @Column(name = "sender_id")
    private String senderId;

    /**
     * 接受者id
     */
    @Column(name = "receiver_id")
    private String receiverId;

    /**
     * 未读数量
     */
    @Column(name = "unread_count")
    private Integer unreadCount;

    /**
     * 备注
     */
    @Column(name = "remark")
    private String remark;

    /**
     * 消息内容
     */
    @Column(name = "message_content")
    private String messageContent;

    /**
     * 获取id
     *
     * @return id - id
     */
    public String getId() {
        return id;
    }

    /**
     * 设置id
     *
     * @param id id
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * 获取接受状态
     *
     * @return accepting_state - 接受状态
     */
    public String getAcceptingState() {
        return acceptingState;
    }

    /**
     * 设置接受状态
     *
     * @param acceptingState 接受状态
     */
    public void setAcceptingState(String acceptingState) {
        this.acceptingState = acceptingState;
    }

    /**
     * 获取发送时间
     *
     * @return send_time - 发送时间
     */
    public Date getSendTime() {
        return sendTime;
    }

    /**
     * 设置发送时间
     *
     * @param sendTime 发送时间
     */
    public void setSendTime(Date sendTime) {
        this.sendTime = sendTime;
    }

    /**
     * 获取消息类型id
     *
     * @return message_type_id - 消息类型id
     */
    public String getMessageTypeId() {
        return messageTypeId;
    }

    /**
     * 设置消息类型id
     *
     * @param messageTypeId 消息类型id
     */
    public void setMessageTypeId(String messageTypeId) {
        this.messageTypeId = messageTypeId;
    }

    /**
     * 获取发送者id
     *
     * @return sender_id - 发送者id
     */
    public String getSenderId() {
        return senderId;
    }

    /**
     * 设置发送者id
     *
     * @param senderId 发送者id
     */
    public void setSenderId(String senderId) {
        this.senderId = senderId;
    }

    /**
     * 获取接受者id
     *
     * @return receiver_id - 接受者id
     */
    public String getReceiverId() {
        return receiverId;
    }

    /**
     * 设置接受者id
     *
     * @param receiverId 接受者id
     */
    public void setReceiverId(String receiverId) {
        this.receiverId = receiverId;
    }

    /**
     * 获取未读数量
     *
     * @return unread_count - 未读数量
     */
    public Integer getUnreadCount() {
        return unreadCount;
    }

    /**
     * 设置未读数量
     *
     * @param unreadCount 未读数量
     */
    public void setUnreadCount(Integer unreadCount) {
        this.unreadCount = unreadCount;
    }

    /**
     * 获取备注
     *
     * @return remark - 备注
     */
    public String getRemark() {
        return remark;
    }

    /**
     * 设置备注
     *
     * @param remark 备注
     */
    public void setRemark(String remark) {
        this.remark = remark;
    }

    /**
     * 获取消息内容
     *
     * @return message_content - 消息内容
     */
    public String getMessageContent() {
        return messageContent;
    }

    /**
     * 设置消息内容
     *
     * @param messageContent 消息内容
     */
    public void setMessageContent(String messageContent) {
        this.messageContent = messageContent;
    }
}